<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div>
    <spring:message code="console.webapp.label.author"/> |
    <a href="/author/${author.id}/edit"><spring:message code="console.webapp.label.edit"/></a> |
    <a href="/author/${author.id}/remove"><spring:message code="console.webapp.label.remove"/></a>
</div>
<ul>
    <li><b><spring:message code="console.webapp.label.id"/></b> ${author.id}</li>
    <li><b><spring:message code="console.webapp.label.createdDate"/></b> ${author.createdDate}</li>
    <li><b><spring:message code="console.webapp.label.lastUpdateDate"/></b> ${author.lastUpdateDate}</li>

    <li><b><spring:message code="console.webapp.label.firstName"/></b> ${author.firstName}</li>
    <li><b><spring:message code="console.webapp.label.lastName"/></b> ${author.lastName}</li>

    <ol><b><spring:message code="console.webapp.label.books"/></b>
        <c:forEach var="book" items="${author.books}">
            <li>
                <a href="/book/${book.id}">${book.title}</a>
            </li>
        </c:forEach>
    </ol>
</ul>